package com.bana.fvs.app.mvp.model;

import com.bana.fvs.app.mvp.ConstantsValue;
import com.bana.fvs.app.mvp.contract.LoginContract;
import com.wei.commonlibrary.net.OkhttpRequest;

import java.util.HashMap;

/**
 * Created by wei on 2018/2/26.
 */

public class LoginModel extends LoginContract.AbsLoginModel {
    @Override
    public void onStart() {

    }

    @Override
    public OkhttpRequest http_login(String username, String password) {

        HashMap<String, Object> map = new HashMap<>();

        HashMap<String, Object> data = new HashMap<>();
        data.put(ConstantsValue.YHMC, username);
        data.put(ConstantsValue.PASSWORD, password);

        map.put("data",data);

        return okhttpRequest.url(iApiService.login(map));
    }
}
